import { defineStore } from 'pinia';

export const useSystemStore = defineStore('system', {
	state: () => {
		const sysInfo = uni.getSystemInfoSync();
		const {statusBarHeight,platform} = sysInfo;
		const navBarHeight=46;
		const seMain='#47B347';
		return { 
			seMain,
			navBarHeight,
			statusBarHeight,
			customNavBarHeight:navBarHeight+statusBarHeight,
			tabBarHeight:'140rpx',
			platform,//客户端平台，值域为：ios、android、devtools、mac（3.1.10+）、windows（3.1.10+）、linux（3.1.10+）
			version:'v1.0.0',
			hasLogin: false,
			token:''
		};
	}
});